package cn.yesway.service;

import java.util.List;
import java.util.Map;

import cn.yesway.entity.User;

public interface UserService {
	public abstract int save(User user);

	public abstract User findByLoginName(String loginName);

	public abstract User findByLoginNameAndPassword(String loginName, String password);

	public abstract User findByUserId(long userId);

	public abstract List<User> findAll();

	public abstract int getCount(Map<String, Object> map);

	public abstract List<User> findPageList(Map<String, Object> map);

	public abstract int update(User user);

	public abstract int delete(long userId);
}
